package com.yh.homestay.common;

import com.yh.homestay.pojo.UserStaff;

import java.io.Serializable;

public class StaffEditResultG implements Serializable {
    private Integer code;
    private String msg;
    private UserStaff userStaff;

    public StaffEditResultG(Integer code) {
        this.code = code;
    }

    public StaffEditResultG(Integer code, UserStaff userStaff) {
        this.code = code;
        this.userStaff = userStaff;
    }

    public StaffEditResultG(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static StaffEditResultG ok() {
        return new StaffEditResultG(200);
    }

    public static StaffEditResultG ok(Integer code, UserStaff userStaff) {
        return new StaffEditResultG(code, userStaff);
    }

    public static StaffEditResultG build(Integer code, String msg) {
        return new StaffEditResultG(code, msg);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public UserStaff getUserStaff() {
        return userStaff;
    }

    public void setUserStaff(UserStaff userStaff) {
        this.userStaff = userStaff;
    }

}
